The Syntax and Semantics ofQuantitative Type Theory

نویسنده

  • ROBERT ATKEY
چکیده

Type Theory offers a tantalising promise: that we can program and reason within a single unified system. However, this promise slips away when we try to produce efficient programs. Type Theory offers little control over the intensional aspect of programs: how are computational resources used, and when can they be reused. Tracking resource usage via types has a long history, starting with Girard’s Linear Logic and culminating with recent work in contextual effects, coeffects, and quantitative type theories. However, there is conflict with full dependent Type Theory when accounting for the difference between usages in types and terms. Recently, McBride has proposed a system that resolves this conflict by treating usage in types as a “zero” usage, so that it doesn’t affect the usage in terms. This leads to a simple expressive system, which we have named “Quantitative Type Theory” (QTT). McBride presented a syntax and typing rules for the system, as well as an erasure property that exploits the difference between “not used” and “used”, but does not do anything with the finer usage information. In this paper, we present present a semantic interpretation of a variant of McBride’s system, where we fully exploit the usage information. We interpret terms simultaneously as having extensional (“compile-time”) content and intensional (“runtime”) content. In our example models, extensional content is set-theoretic functions, representing the “compile-time” or “type-level” content of a type-theoretic construction. Intensional content is given by realisers for the extensional content. We use Abramsky et al.’s Linear Combinatory Algebras as realisers, yield a large range of potential models from Geometry of Interaction, graph models, and syntactic models. Read constructively, our models provide a resource sensitive compilation method for QTT. To rigorously define the structure required for models of QTT, we introduce the concept of a “Quantitative Category with Families”, a generalisation of the standard “Category with Families” class of models of Type Theory, and show that this class of models soundly interprets Quantitative Type Theory.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reverse Engineering of Network Software Binary Codes for Identification of Syntax and Semantics of Protocol Messages

Reverse engineering of network applications especially from the security point of view is of high importance and interest. Many network applications use proprietary protocols which specifications are not publicly available. Reverse engineering of such applications could provide us with vital information to understand their embedded unknown protocols. This could facilitate many tasks including d...

متن کامل

بررسی نقش زبان و کارکردهای‌اجرایی در رشد نظریه‌ذهن کودکان‌ناشنوا

Theory of Mind is a comprehensive and general term about the state of intention that determines the quality of a person's social interaction and without it we would not be able to interpret the actions of others. While researchers express the causative role of language in Theory of Mind’s development as a social and fundamental capacity, recent studies have suggested a close link between ...

متن کامل

Programming language semantics in foundational type theory

languages --e.g., theoretical foundations, syntax, semantics, types, scope of Brief history of programming languages, Syntax, Semantics, Essentials, Paradigms Expression evaluation orders, Types, Recursion, Higher-order programming Programming Distributed Computing Systems: A Foundational Approach. type theory and the foundations of functional programming languages. Secondly, I would like to th...

متن کامل

Incorporating Quotation and Evaluation into Church's Type Theory: Syntax and Semantics

cttqe is a version of Church’s type theory that includes quotation and evaluation operators that are similar to quote and eval in the Lisp programming language. With quotation and evaluation it is possible to reason in cttqe about the interplay of the syntax and semantics of expressions and, as a result, to formalize syntax-based mathematical algorithms. We present the syntax and semantics of c...

متن کامل

Fuzzy type theory with partial functions

This paper is a study of fuzzy type theory (FTT) with partial functions. Out of several possibilities we decided tointroduce a special value ”∗” that represents ”undefined”. In the interpretation of FTT, this value lays outside of thecorresponding domain. In the syntax it can be naturally represented by the description operator acting on the empty(fuzzy) set, because choosing an element from it...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017